package sctu.edu.java.year2016.team02.wanggaowen.day20160522.chapter6_2;

/**
 * Created by 15c on 2016/5/24.
 */
public class work6_2 {
        public static void main(String[] args){
            String art="  I am a good student";char[] arr=new char[30];
            System.out.print(art);int j=0;
            for(int i=0;i<art.length();i++){
                if(art.charAt(i)!=' '){
                    arr[j]=art.charAt(i);j++;
                }
            }System.out.println("");
            for(char a:arr){

                System.out.print(a);
            }

        }
    }

